package com.longxiao.constants;

import com.longxiao.enums.ResultCode;
import com.longxiao.exception.LXException;

/**
 * Created by yusong on 2017/5/8.
 * 系统异常
 */
public class LXExceptions {
    //服务器异常
    public static final LXException SYSTEM_ERROR = new LXException(ResultCode.FAIL,"EN");

    //参数异常
    public static final LXException PARA_ERROR = new LXException(ResultCode.PARAM_ERROR,"EN");

    //找不到指定记录
    public static final LXException NO_RECORD_ERROR = new LXException(ResultCode.DATA_NOT_FOUND,"EN");

    //密码错误
    public static final LXException WRONG_PASS_ERROR = new LXException(ResultCode.LOGIN_FAIL,"CN");

    //登录超时
    // public static final LXException NEED_LOGIN = new LXException("408","登录超时");

    //临时用户
    public static final LXException TEMP_USER = new LXException(ResultCode.SUPPLEMENTAL_USER_INFO,"CN");

}
